<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- <script>
        var a = 1 ;
        var b = 1 ;
        var res = 0 ; 
        for ( var i = 0 ; i < 4 ; i ++ ) {
            res = res + parseInt(a);
            a = a + "" + b ;
        }
        console.log(res);
    </script> -->
    <script>
        for ( var a = 1 ; a < 10 ; a ++ ) {
            for ( var b = 0 ; b < 10 ; b ++ ){
                for ( var c = 0 ; c < 10 ; c ++ ){
                    if ( a == b || b == c || a == c ){
                        console.log(parseInt(a.toString()+b.toString()+c.toString()));
                    }
                }
            }
        }
    </script>
</body>
</html>